PhysicsClient Class Reference

#include <PhysicsClient.h>

Inheritance diagram for PhysicsClient:

CarPhysics OtherPhysicalObjects List of all members.

Public Member Functions

 PhysicsClient ()
virtual ~PhysicsClient ()
bool init (dWorldID world, dSpaceID space, dSpaceID envSpace)
virtual double update (double step)=0
virtual void odeDraw ()=0
virtual void setCollusion ()

Protected Attributes

dWorldID _world
dSpaceID _space
dSpaceID _envSpace

Detailed Description

PhysicsClient.h interface for the PhysicsClient class. abstract base class for inheriting physics classes


Constructor & Destructor Documentation

PhysicsClient::PhysicsClient (   ) 
 

A constructor. give default values to physical world and space.

virtual PhysicsClient::~PhysicsClient (   )  [virtual]
 

A destructor.


Member Function Documentation

bool PhysicsClient::init (  dWorldID  world,
dSpaceID  space,
dSpaceID  envSpace
) 
 

a normal member taking three arguments and returning bool.

Parameters:
world is the world id of the physical world that the client will be registered in.
space is the space id of the physical space that the client will be registered in.
envSpace is the space id of the physical space that the client will be registered in.
Returns:
true if successful this function is called by the PhysicsServer for each registered client to set its world,space and environment space

virtual void PhysicsClient::odeDraw (   )  [pure virtual]
 

A pure virtual member.

Implemented in CarPhysics, and OtherPhysicalObjects.

virtual void PhysicsClient::setCollusion (   )  [inline, virtual]
 

A virtual member.

Reimplemented in OtherPhysicalObjects.

virtual double PhysicsClient::update (  double  step  )  [pure virtual]
 

A pure virtual member.

Parameters:
step a double argument defines the worldstep amount.
Returns:
double.

Implemented in CarPhysics, and OtherPhysicalObjects.


Member Data Documentation

dSpaceID PhysicsClient::_envSpace [protected]
 

a protected variable. geometries that are considered part of the environment.

dSpaceID PhysicsClient::_space [protected]
 

a protected variable. the final frontier.

dWorldID PhysicsClient::_world [protected]
 

a protected variable. the world we live in.


The documentation for this class was generated from the following file:
Generated on Sun May 28 18:44:00 2006 by  doxygen 1.4.6-NO